require 'rubygems'
require 'RMagick'
include Magick

module ImagePath
  def image_path
    "/#{self.class.name.downcase}/image_url/" +  self.image_url_relative_path
  end

  def thumb_image_path
    "/#{self.class.name.downcase}/image_url/" + self.image_url_relative_path('thumb')
  end

end

